package com.zhku.onlineshop.Service.impl;

import com.zhku.onlineshop.Dao.UserDao;
import com.zhku.onlineshop.Pojo.User;
import com.zhku.onlineshop.Service.LogginService;
import org.apache.ibatis.annotations.Select;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class LogginServiceimpl implements LogginService {
    @Autowired
    private UserDao userDao;
    @Override
    public User loggin(User user) {
        return userDao.SelectByUsernameAndPassword(user);
    }
    @Override
    public User loggin1(User user) {
        return userDao.SelectByUsernameAndPassword1(user);
    }
}
